﻿<UserControl x:Class="Mengsk.ProxyDelivery.App.UI.Config.SystemConfigUserControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="800" Loaded="UserControl_Loaded">
    <StackPanel>

        <GroupBox Header="订单关闭">
            <Grid >
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                </Grid.RowDefinitions>

                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition Width="*"/>
                </Grid.ColumnDefinitions>

                <TextBlock Grid.Row="0" Grid.Column="0" Text="可关闭尺码:" Margin="3" VerticalAlignment="Center"/>
                <ListBox Grid.Row="0" Grid.Column="1" Name="lst1">
                    <ListBox.ItemsPanel>
                        <ItemsPanelTemplate>
                            <WrapPanel></WrapPanel>
                        </ItemsPanelTemplate>
                    </ListBox.ItemsPanel>
                    <ListBox.ItemTemplate>
                        <DataTemplate>
                            <CheckBox IsChecked="{Binding Selected}" Content="{Binding Value}" FlowDirection="RightToLeft" Margin="5,3,5,3"/>
                        </DataTemplate>
                    </ListBox.ItemTemplate>
                </ListBox>
                <TextBlock Grid.Row="1" Grid.Column="0" Text="可关闭类型:" Margin="3" VerticalAlignment="Center"/>
                <ListBox Grid.Row="1" Grid.Column="1" Name="lst2">
                    <ListBox.ItemsPanel>
                        <ItemsPanelTemplate>
                            <WrapPanel></WrapPanel>
                        </ItemsPanelTemplate>
                    </ListBox.ItemsPanel>
                    <ListBox.ItemTemplate>
                        <DataTemplate>
                            <CheckBox IsChecked="{Binding Selected}" Content="{Binding Title}"  FlowDirection="RightToLeft" Margin="5,3,5,3"/>
                        </DataTemplate>
                    </ListBox.ItemTemplate>
                </ListBox>
            </Grid>
        </GroupBox>

        <GroupBox Header="无单退货价格">
            <Grid >
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>  
                    <RowDefinition Height="Auto"/>
                </Grid.RowDefinitions>

                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition Width="*"/>
                </Grid.ColumnDefinitions>
                <TextBlock Grid.Row="0" Grid.Column="0" Text="价格分割:" Margin="3" VerticalAlignment="Center"/>
                <TextBox Grid.Row="0" Grid.Column="1" Name="tbReturnWithNoOrderMoney" Margin="3" VerticalAlignment="Center" Width="100" HorizontalAlignment="Left"/>
                <TextBlock Grid.Row="1" Grid.Column="0" Text="低于价格收费:" Margin="3" VerticalAlignment="Center"/>
                <TextBox Grid.Row="1" Grid.Column="1" Name="tbReturnWithNoOrderMoneyDown" Margin="3" VerticalAlignment="Center" Width="100" HorizontalAlignment="Left"/>
                <TextBlock Grid.Row="2" Grid.Column="0" Text="高于价格收费:" Margin="3" VerticalAlignment="Center"/>
                <TextBox Grid.Row="2" Grid.Column="1" Name="tbReturnWithNoOrderMoneyOverUp" Margin="3" VerticalAlignment="Center" Width="100" HorizontalAlignment="Left"/>
            </Grid>
        </GroupBox>
        <Button Grid.Row="3" Grid.Column="1" Name="btnSave" Margin="3" VerticalAlignment="Center" Content="保存" Click="btnSave_Click" HorizontalAlignment="Center" Width="80"/>

    </StackPanel>
</UserControl>
